package com.cheers.service;

import java.util.List;
import java.util.Map;

public interface IntegralService {
	
	/**
	 * 积分排行榜
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List<Map<String, Object>> rank(int pageIndex, int pageSize) throws Exception;

	/**
	 * 用户积分累计
	 * @param userId
	 * @param channel
	 * @param point
	 * @return
	 * @throws Exception
	 */
	public String addPoint(String userId, String channel, int point) throws Exception;
	
	/**
	 * 用户总积分
	 * @param userId
	 * @param channel
	 * @param point
	 * @throws Exception
	 */
	public void addIntegral(String userId, String channel, int point) throws Exception;
	
	/**
	 * 获取用户总积分
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public Long getTotalPoint(String userId) throws Exception;
}
